﻿@model EventSys.BussinesEntities.webpages_Roles

@*<script src="~/Scripts/jquery-1.8.2.min.js"></script>
<script src="~/Scripts/jquery.validate.min.js"></script>
<script src="~/Scripts/jquery.validate.unobtrusive.min.js"></script>*@
@{
    ViewBag.Title = "Index";
    var ajaxoption = new AjaxOptions() {       
    OnSuccess = "OnSuccessCreate"    
    };
}

<div id="dialogAddRoles" title="Registar">
@using(Ajax.BeginForm(null, null, ajaxoption, new {id = "frmGuardar",name="frmGuardar" })) {
    
   @Html.ValidationSummary(true)
   
    <fieldset>
        <legend>Roles</legend>

        @*<div class="editor-label">
            @Html.HiddenFor(model => model.RoleId)
        </div>
        <div class="editor-field">
            @Html.HiddenFor(model => model.RoleId)
            @Html.ValidationMessageFor(model => model.RoleId)
        </div>*@
        Nombre de Nuevo Rol
        @*<div class="editor-label">
            @Html.LabelFor(model => model.RoleName)
        </div>*@
        <div class="editor-field">
            @Html.EditorFor(model => model.RoleName)
            @Html.ValidationMessageFor(model => model.RoleName)
        </div>

        @*<p>
            <input type="submit" value="Create" />
        </p>*@
    </fieldset>
}
    </div>

@*<div>
    @Html.ActionLink("Back to List", "Index")
</div>*@
